﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SkyFab.Master" AutoEventWireup="true" CodeBehind="VendorInvoiceDetail.aspx.cs" Inherits="Web.VendorInvoiceDetail" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="SubMenuPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
<asp:Label ID="FlashMessageLabel" runat="server"></asp:Label>
<h1>Vendor Invoice Detail</h1>

    <div class="span-9">
    <fieldset>
    <legend>Vendor Information</legend>

    <p>
    <label>Vendor:</label>
    <asp:Label ID="VendorLabel" runat="server"></asp:Label>
    </p>

    </fieldset>
    </div>

    <div class="span-9">
    <fieldset>
    <legend>Invoice Information</legend>

    <p>
    <label>Invoice No.:</label>
    <asp:Label ID="InvoiceNoLable" runat="server"></asp:Label>
    </p>

    <p>
    <label>Date:</label>
    <asp:Label ID="DateLabel" runat="server"></asp:Label>
    </p>

    <p>
    <label>Paid:</label>
    <asp:Label ID="PaidLabel" runat="server"></asp:Label>
    </p>
    </fieldset>
    </div>

    <div class="span-18">
    <fieldset>
    <legend>Invoice Items</legend>

    <p>
    <asp:GridView ID="VendorInvoiceItemsGridView" runat="server" 
        AutoGenerateColumns="False" CssClass="gridview">
        <Columns>
            <asp:TemplateField HeaderText="Product No">
            <ItemTemplate>
                <asp:HyperLink ID="ProductHyperLink" runat="server" NavigateUrl='<%#"ProductDetail.aspx?id="+Eval("ProductId") %>'><%#Eval("ProductNo") %></asp:HyperLink>
            </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="BatchNo" HeaderText="Batch No" />
            <asp:BoundField DataField="Quantity" HeaderText="Qty" />
            <asp:TemplateField HeaderText="PO No.">
            <ItemTemplate>
                  <asp:HyperLink ID="PONoHyperLink" runat="server" NavigateUrl='<%# "VendorPODetail.aspx?vendPOid="+Eval("PoId") %>'><%# Eval("PoNo")%></asp:HyperLink>
            </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <AlternatingRowStyle BackColor="White" />
        <EditRowStyle BackColor="#2461BF" />
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerStyle HorizontalAlign="Center" CssClass="pagerTable" />
        <RowStyle BackColor="#EFF3FB" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#F5F7FB" />
        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
        <SortedDescendingCellStyle BackColor="#E9EBEF" />
        <SortedDescendingHeaderStyle BackColor="#4870BE" />
    </asp:GridView>
    </p>
    </fieldset>
    </div>

    <div class="span-18">
    <asp:Button ID="EditButton" Text="Edit" runat="server" 
                    onclick="EditButton_Click" CssClass="submitButton" />
    <asp:Button ID="DeleteButton" Text="Delete" runat="server" 
                    onclick="DeleteButton_Click" CssClass="submitButton"/>
    </div>    
            

</asp:Content>
